import { tr as trStandard } from '@config/hero/standard';

type getTr = (key: name) => string;
type getTrs = (keys: name[]) => string;
const trGame: tr = {
    zhu: '主',
    zhong: '忠',
    nei: '内',
    fan: '反',
    wuming: '无名',
};
const trAll = {
    ...trStandard,
    ...trGame,
};
const tr: getTr = key => trAll[key];
const trs: getTrs = keys => keys.reduce((acc, cur) => `${acc}${tr(cur)} `, '');
export { tr, trs };
